package com.cindata

class MortgageContract
{
    Date createdDate = new Date()
    Date modifiedDate = new Date()

    static belongsTo = [mortgage: Mortgage, contract: Contract]

    static mapping = {
        autowire true
    }

    static constraints = {
        contract unique: ['mortgage']
    }
}